<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="customer" tagdir="/WEB-INF/tags/customer"%>
<title>客户选择器测试和演示页面</title>
<script type="text/javascript">
function myCallback(customer){
	var returnString = "[Success]\r\n";
	returnString += "customerId:"+customer.customerId+",";
	returnString += "username:"+customer.username+",";
	returnString += "fullname:"+customer.fullname;
	alert(returnString);
}
function myCallback2(customers){
	var returnString = "[Success]\r\n";
	for(var i=0; i<customers.length; i++){
		var customer = customers[i];
		returnString +=i+":";
		returnString += "customerId:"+customer.customerId+",";
		returnString += "username:"+customer.username+",";
		returnString += "fullname:"+customer.fullname+"\r\n";
	}	
	alert(returnString);
}
</script>
<input value="单个客户选择器" onclick="showDialogOfselector1()" type="button"/>
<customer:customerSelector selectorId="selector1" callbackFunc="myCallback"/>

<input value="多个客户选择器" onclick="showDialogOfselector2()" type="button"/>
<customer:customerSelector selectorId="selector2" callbackFunc="myCallback2" multiple="true"/>
